package design.patterns.create.factory.method;

public class Apple implements  Fruit {

    private int treeAge;

    public int getTreeAge() {
        return treeAge;
    }

    public void setTreeAge(int treeAge) {
        this.treeAge = treeAge;
    }

    @Override
    public void grow() {
        System.out.println("苹果树正在生长!");
    }

    @Override
    public void harvest() {
        System.out.println("收获苹果!");
    }

    @Override
    public void plant() {
        System.out.println("播种苹果树!");
    }
}
